package com.stefanini.pe.bbva.iivs.in.model.mantenimiento;

import java.util.ArrayList;
import java.util.List;

import com.stefanini.pe.bbva.iivs.in.bo.iface.GrupoService;
import com.stefanini.pe.bbva.iivs.in.bo.iface.TareaGrupoService;
import com.stefanini.pe.bbva.iivs.in.bo.iface.TareaService;
import com.stefanini.pe.bbva.iivs.in.listeners.SpringInit;
import com.stefanini.pe.bbva.iivs.in.to.Grupo;
import com.stefanini.pe.bbva.iivs.in.to.Tarea;

public class TareaModel {

	private TareaService tareaService;
	private TareaGrupoService tareaGrupoService;
	private GrupoService grupoService;
	
	Tarea tarea = new Tarea();
	List<Grupo> lstGrupos = new ArrayList<Grupo>();
	List<Tarea> lstTareas = new ArrayList<Tarea>();
	String lblError_Text = "";

	
	public TareaModel() {
		reset();
	}
	
	public void reset(){
		tareaService = (TareaService)SpringInit.getApplicationContext().getBean("tareaService");
		tareaGrupoService = (TareaGrupoService)SpringInit.getApplicationContext().getBean("tareaGrupoService");
		grupoService = (GrupoService)SpringInit.getApplicationContext().getBean("grupoService");		
		tarea = new Tarea();
		lstGrupos = new ArrayList<Grupo>();
		lstTareas = new ArrayList<Tarea>();
		lblError_Text = "";
	}

	public TareaService getTareaService() {
		return tareaService;
	}

	public void setTareaService(TareaService tareaService) {
		this.tareaService = tareaService;
	}

	public GrupoService getGrupoService() {
		return grupoService;
	}

	public void setGrupoService(GrupoService grupoService) {
		this.grupoService = grupoService;
	}

	public Tarea getTarea() {
		return tarea;
	}

	public void setTarea(Tarea tarea) {
		this.tarea = tarea;
	}

	public List<Grupo> getLstGrupos() {
		return lstGrupos;
	}

	public void setLstGrupos(List<Grupo> lstGrupos) {
		this.lstGrupos = lstGrupos;
	}

	public String getLblError_Text() {
		return lblError_Text;
	}

	public void setLblError_Text(String lblError_Text) {
		this.lblError_Text = lblError_Text;
	}

	public List<Tarea> getLstTareas() {
		return lstTareas;
	}

	public void setLstTareas(List<Tarea> lstTareas) {
		this.lstTareas = lstTareas;
	}

	public TareaGrupoService getTareaGrupoService() {
		return tareaGrupoService;
	}

	public void setTareaGrupoService(TareaGrupoService tareaGrupoService) {
		this.tareaGrupoService = tareaGrupoService;
	}

}
